package org.example.item.controller;

import org.example.item.contract.request.ItemRequestForInventory;
import org.example.item.feign.ItemFeign;
import org.example.misc.model.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/item")
public class ItemController implements ItemFeign {

    /**
     * 扣减库存
     *
     * @param request
     */
    @Override
    public Result<Boolean> deductInventory(ItemRequestForInventory request) {


        return Result.ok(Boolean.TRUE);
    }
}
